<?php
/**
 * 默认首页控制器
 * @author         1959531621@qq.com
 * @filesource
 */
defined('IN_RCPHP') or exit('Access denied');

class indexController extends commonController
{

	/**
	 * Template variable
	 *
	 * @var array
	 */
	private $_data = array();

	/**
	 * Model object
	 *
	 * @var object
	 */
	private $_model = null;

	/**
	 * per page items
	 *
	 * @var int
	 */
	private $_limit = 10;

	/**
	 * Extends base construct method.
	 * @author 1959531621@qq.com
	 */
	public function __construct()
	{
		parent::__construct();
		$this->_model = M('index');
	}

	/**
	 * 首页
	 * @author 1959531621@qq.com
	 */
	public function index()
	{
//		$this->initMeetPage($this->_data,$this->_mid,1);
//        $to = '15201970281@163.com';
//        $message = '你好，朋友';
//        $result = mail($to,'消息',$message);
//        var_dump($result);
       $this->display('indexView');
      // $this->display('newsView');
	}

    /**
     * 留言页
     * @author 1959531621@qq.com
     */
    public function message()
    {
        //$this->initMeetPage($this->_data,$this->_mid,1);

        $this->display('messageView');
        // $this->display('newsView');
    }

    /**
     * 查看留言功能
     * @author 1959531621@qq.com
     */
    public function checkMessage()
    {
        //$this->initMeetPage($this->_data,$this->_mid,1);

        $this->display('checkMesView');
        // $this->display('newsView');
    }


    /**
     * 联系我们功能
     * @author 1959531621@qq.com
     */
    public function contactUs()
    {
        //$this->initMeetPage($this->_data,$this->_mid,1);
        $this->display('contactView');
        // $this->display('newsView');
    }

    /**
     * 园区介绍功能
     * @author 1959531621@qq.com
     */
    public function introduction()
    {
        //$this->initMeetPage($this->_data,$this->_mid,1);

        $this->display('introView');
        // $this->display('newsView');
    }
}